<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@page import="java.io.StringWriter"%>
<%@page import="java.io.Writer"%>
<%@page import="java.io.PrintWriter"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"  isErrorPage="true"%>
<%@ include file="/WEB-INF/jsp/common/page_init.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>出错了</title>
<script type="text/javascript">
function showError(){
	$("#error-detail").slideToggle();
	}
</script>
</head>

<body>
<div class="error-main">
  <div class="alert alert-warning">
    <div  class="font_20">
      <p><i class="iconf jinggao"></i> </p>
      <strong>(⊙o⊙)…出错了!</strong> </div>
      
  </div>
  <div class="pd5 ac"><button class="btn" onclick="showError();">查看错误信息</button></div>
  <div class="error-detail" id="error-detail">
    
    <%
	       		PrintWriter printWriter = null;
				Writer info = null;
				try {
					info = new StringWriter();
					printWriter = new PrintWriter(info);
					exception.printStackTrace(printWriter);
					
				} catch (Exception e) {
					e.printStackTrace();
				} finally {
					if (printWriter != null) {
						printWriter.close();
					}
	
				}
	       	%>
	       	<%=exception.getMessage() %>
<%=info.toString() %>
  </div>
</div>

</body>
</html>